// Copyright (c) 2010 Manuel Peinado Gallego <manuel.peinado@gmail.com>
// Distributed under the MIT license


#include "stdafx.h"
#include "PythonManager.h"
#include <alg3d/gx.h>


// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Create Python wrappers. This code be called once the Python manager
// has been properly initialized

MPG_BEGIN_PYTHON_REGISTRATION(0)

    // Add wrapper for Vec3 class
    // in the python side
    pyManager().addClass(
        "Vec3", 
        bpy::class_<gx::Vec3>(
            "Vec3"
        )
        .def(bpy::init<double, double, double>())
    );

    // Add wrapper for AxisAngle class
    // in the python side
    pyManager().addClass(
        "AxisAngle", 
        bpy::class_<gx::AxisAngle>(
            "AxisAngle"
        )
        .def(bpy::init<gx::Vec3, double>())
    );


MPG_END_PYTHON_REGISTRATION 